package com.wl2o2o.collection;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

public class CollectionsMethod {

	public static void main(String[] args) {
		ArrayList<Integer> list = new ArrayList<Integer>();
		list.add(1);
		list.add(2);
		list.add(3);
		list.add(4);
		Collections.reverse(list);
		System.out.println(list);

		// 数组
		Integer[] nums = new Integer[10];
		Arrays.setAll(nums, i -> i);
		
	}

}
